﻿@model TbShop.Web.Areas.Admin.Models.LoginViewModel

@{
    Layout = string.Empty;
}

<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>欢迎使用</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/site")
    @Scripts.Render("~/bundles/bootstrap")

    <link href="~/Scripts/icheck/skins/square/blue.css" rel="stylesheet" />
    <style>
        .login-logo a, .register-logo a {
            color: #D2D6DE;
        }

        .login-box, .register-box {
            width: 420px;
            margin: 15% auto;
        }

        .login-box-body, .register-box-body {
            border-radius: 15px;
        }
    </style>
</head>
<body class="hold-transition login-page enable-bg">
    <div class="login-box">
        <div class="login-box-body">
            @*<div class="login-logo">
                    <img src="~/Content/images/logo.png" style="width:200px;height:50px;" alt="二手房网签" />
                </div>*@
            <p class="login-box-msg" style="font-size:22px; line-height:50px;">欢迎使用</p>
            @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @role = "form", onkeydown = "if(event.keyCode==13){return false;}" }))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)
                <div class="form-group has-feedback">
                    @Html.TextBoxFor(m => m.UserName, new { @class = "form-control required", placeholder = "账号" })
                    <i class="fa fa-user form-control-feedback"></i>
                </div>
                <div class="form-group has-feedback">
                    @Html.PasswordFor(m => m.Password, new { @class = "form-control required", placeholder = "密码" })
                    <i class="fa fa-lock form-control-feedback"></i>
                </div>
                <div class="row">
                    <div class="col-xs-8">
                        <div class="checkbox icheck">
                            <label>
                                <input type="checkbox" name="RememberMe"> 下次记住
                            </label>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <button type="submit" class="btn btn-primary btn-block btn-flat" id="submitBtn">登录</button>
                    </div>
                </div>
            }
        </div>
    </div>

    <footer class="text-center">
        Copyright &copy; 2018 商城信息管理系统. All Rights Reserved. 版权所有
    </footer>

    <script src="~/Scripts/icheck/icheck.min.js"></script>
    <script>
        $(function () {
            $('input').iCheck({
                checkboxClass: 'icheckbox_square-blue',
                radioClass: 'iradio_square-blue',
                increaseArea: '20%'
            });
        });
    </script>
</body>
</html>
